package Day14;

import java.util.Scanner;

/**
 * Creat with IntelliJ IDEA
 * Description
 * User: mamba24
 * Date: 2022-09-27
 * Time: 10:18
 * To BE A Better Person-2020-3-2
 */
public class TestDemo2 {
    public static boolean isLuckBag(int[] xi){
        int sum=0;
        int prod=1;
        for (int i = 0; i < xi.length; i++) {
            sum+=xi[i];
            prod*=xi[i];
        }
        //hhh
        if(sum > prod){
            return true;
        }
        return false;
    }
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int[] xi=new int[n];
        int num=0;
        for (int i = 0; i < n; i++) {
            xi[i]=sc.nextInt();
        }
        if(isLuckBag(xi)){
            num++;
        }


    }
}
